<%
--[[
    Info      FIFA助手插件设置页
    Author    Paull  <paull@qq.com>
    Copyright 2018
]]--
local i18n = require "luci.i18n" %>
            <div id="ss_setup_node" style="display: none;">
                <form>
                    <input type="hidden" required="required" id="ss_local_port" name="ss_local_port" value="61717">
                    <div class="G-form-main">
                        <div class="G-form-main-hd">
                            <span class="G-handle right go_back">
                                <span class="icon back"></span><span><%=i18n.translate("web_go_back")%></span>
                            </span>
                            <span class="icon setting"></span><span>服务器节点管理</span>
                        </div>
                        <div class="G-form-main-bd">
                            <div class="ss-panel">
                                <table class="G-form-table">
                                    <col width="160"/>
                                    <col width="340"/>
                                    <tr>
                                        <th>服务器选择</th>
                                        <td>
                                            <select id="ss_server_nodes" name="ss_server_choice" class="J_selectOriginal"></select>
                                            <a href="javascript:;" class="text-btn" id="ss_create">新增</a>
                                            <a href="javascript:;" class="text-btn" id="ss_delete"><%=i18n.translate("web_delete")%></a>
                                        </td>
                                    </tr>
                                    <tr>
                                        <th>服务器别名</th>
                                        <td><input type="text" class="input" required="required" id="ss_server_name" name="ss_server_name" tabindex="1"></td>
                                    </tr>
                                    <tr>
                                        <th><%=i18n.translate("web_server_address")%></th>
                                        <td><input type="text" class="input" required="required" id="ss_server_ipad" name="ss_server_ipad" tabindex="2"></td>
                                    </tr>
                                    <tr>
                                        <th>服务器端口</th>
                                        <td><input type="text" class="input" required="required" id="ss_server_port" name="ss_server_port" tabindex="3"></td>
                                    </tr>
                                    <tr>
                                        <th>通讯<%=i18n.translate("g_password")%></th>
                                        <td>
                                            <div class="G-password-bar">
                                                <a href="javascript:;" class="password-handle J_password_icon G-password-off"></a>
                                                <input type="text" name="" class="input" style="display: none;">
                                                <input type="password" id="ss_server_pass" name="ss_server_pass" class="input" tabindex="4">
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <th>加密算法</th>
                                        <td>
                                            <select id="ss_server_meth" name="ss_server_meth" required="required" class="J_selectOriginal">
                                                <option value="">请选择</option>
                                                <option value="table">table</option>
                                                <option value="rc4">rc4</option>
                                                <option value="rc4-md5">rc4-md5</option>
                                                <option value="aes-128-cfb">aes-128-cfb</option>
                                                <option value="aes-192-cfb">aes-192-cfb</option>
                                                <option value="aes-256-cfb">aes-256-cfb</option>
                                                <option value="bf-cfb">bf-cfb</option>
                                                <option value="camellia-128-cfb">camellia-128-cfb</option>
                                                <option value="camellia-192-cfb">camellia-192-cfb</option>
                                                <option value="camellia-256-cfb">camellia-256-cfb</option>
                                                <option value="cast5-cfb">cast5-cfb</option>
                                                <option value="des-cfb">des-cfb</option>
                                                <option value="idea-cfb">idea-cfb</option>
                                                <option value="rc2-cfb">rc2-cfb</option>
                                                <option value="seed-cfb">seed-cfb</option>
                                                <option value="salsa20">salsa20</option>
                                                <option value="chacha20">chacha20</option>
                                                <option value="chacha20-ietf">chacha20-ietf</option>
                                            </select>
                                        </td>
                                    </tr>
                                    <tr>
                                        <th><%=i18n.translate("web_run_mode")%></th>
                                        <td>
                                            <select id="ss_runnin_mode" name="ss_runnin_mode" required="required" class="J_selectOriginal">
                                                <option value="">请选择</option>
                                                <option value="gfwlist">域名列表模式</option>
                                                <option value="game">游戏模式(所有TCP端口)</option>
                                                <option value="web">网页模式(仅TCP80和443端口)</option>
                                                <option value="all">全局模式(不区分国内外IP)</option>
                                            </select>
                                        </td>
                                    </tr>
                                    <tr>
                                        <th id="ss_running_state"><%=i18n.translate("web_running_state")%></th>
                                        <td class="text-td">
                                            <span id="ss_status_info"><%=i18n.translate("g_not_start")%></span>
                                            <a href="javascript:;" class="text-btn" id="ss_start"><%=i18n.translate("g_start")%></a>
                                            <a href="javascript:;" class="text-btn" id="ss_restart" style="display: none;">重启</a>
                                            <a href="javascript:;" class="text-btn" id="ss_stop" style="display: none;"><%=i18n.translate("g_stop")%></a>
                                            <a href="javascript:;" class="text-btn" id="ss_refresh"><%=i18n.translate("g_refresh")%></a>
                                        </td>
                                    </tr>
                                    <!--网络测试（Add by wybb）-->            
                                    <tr>
                                        <th>网络测试</th>
                                        <td class="text-td">
                                             <span id="network_test_result" style="display:inline-block;width:80px;">未进行</span>
                                             <a href="javascript:;" class="text-btn" id="network_test">运行测试</a>
                                        </td>
                                    </tr>
                                </table>
                                <div class="super-set-bar G-handle" id="ss_advanced_setup_bt">
                                    <span><%=i18n.translate("web_advanced_set")%></span><span class="icon icon16"></span>
                                </div>
                                <table class="G-form-table" id="ss_advanced_table" style="display: none;">
                                    <col width="160"/>
                                    <col width="340"/>
                                    <tr style="display: none;">
                                        <th>fastopen</th>
                                        <td style="padding-top:10px;">
                                            <input type="hidden" name="ss_server_fsop" value="false" />
                                            <a href="javascript:;" class="G-switch-btn off" id="ss_server_fsop"><span></span></a>
                                            <span class="icon icon22 J_Tip G-handle" style="width: 14px; height: 14px; display: inline-block; vertical-align: middle; margin-left: 5px;"></span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <th><%=i18n.translate("web_boot")%></th>
                                        <td>
                                            <a href="javascript:;" class="G-switch-btn off btn" id="ss_auto_start"><span></span></a>
                                        </td>
                                    </tr>
                                    <tr>
                                        <th>FIFA20锁服</th>
                                        <td>
                                            <a href="javascript:;" class="G-switch-btn off btn" id="fifa19_region_lock"><span></span></a>
                                            <span class="text-normal J_hidden_wifi G-handle" style="margin-left:0;">强制中亚(香港)</span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <th>远程DNS</th>
                                        <td>
                                            <select id="ss_remote_dnss" name="ss_remote_dnss" required="required" class="J_selectOriginal">
                                                <option value="">请选择</option>
                                                <option value="8.8.4.4" selected>谷歌(8.8.4.4)</option>
                                                <option value="60.32.112.42">日本(60.32.112.42)</option>
                                                <option value="168.95.1.1">台湾(168.95.1.1)</option>
                                                <option value="218.102.23.228">香港(218.102.23.228)</option>
                                                <option value="168.126.63.1">韩国168.126.63.1)</option>
                                                <option value="208.67.222.222">OpenDNS-1(208.67.222.222)</option>
                                                <option value="208.67.220.220">OpenDNS-2(208.67.220.220)</option>
                                                <option value="128.199.248.105">新加坡(128.199.248.105)</option>
                                                <option value="74.82.42.42">HE.NET(74.82.42.42)</option>
                                            </select>
                                        </td>
                                    </tr>
                                    <tr>
                                        <th id="dns_running_state">DNS运行状态</th>
                                        <td class="text-td">
                                            <span id="dns_status_info"><%=i18n.translate("g_not_start")%></span>
                                            <a href="javascript:;" class="text-btn" id="dns_refresh"><%=i18n.translate("g_refresh")%></a>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                            <div class="panel-btn-bar">
                                <a href="javascript:;" class="btn" id="submit_ss"><%=i18n.translate("g_save")%></a>
                            </div>
                        </div>
                    </div>
                </form>
            </div>
